﻿@if (Request.IsAuthenticated)
{
   <div id="container">
    <div id="topnav" class="topnav"><span>@Html.ActionLink("Olá " + ((FormsIdentity)HttpContext.Current.User.Identity).Ticket.UserData, "MyDetails", "Account", null, new { @class = "signout" })</span><a href="@Url.Action("LogOff", "Account")" class="signout"><span>Sair</span></a></div>
   </div>
}
else
{
 <div id="container">
  <div id="topnav" class="topnav"><a href="#" class="signin"><span>Faça login | Registe-se </span></a> </div>
  <fieldset id="signin_menu">
    @using (Html.BeginForm("Logon", "Account", FormMethod.Post))
    {
      <label for="username">Email</label>
      <input id="username" name="username" value="" title="username" tabindex="4" type="text"/>
      <p>
        <label for="password">Password</label>
        <input id="password" name="password" value="" title="password" tabindex="5" type="password"/>
      </p>
      <p class="remember">
        <input id="signin_submit" value="Sign in" tabindex="6" type="submit"/>
        <input id="RememberMe" name="RememberMe" tabindex="7" type="checkbox" value="true" checked="checked"/>
        <label for="remember">Permanecer ligado?</label>
      </p>
    }
      <p class="forgot">@Html.ActionLink("Esqueceu a password?", "ChangePassword", "Account", null, new { id = "resend_password_link" }) </p>
      <p class="forgot-username"><hr style="color:#2277BB" /> 
      @Html.ActionLink("Novo utilizador? Registe-se!", "Register", "Account", null, new { id = "register_link", title = "Se ainda não é nosso utilizador, efectue aqui o registo" }) 
</p>
  </fieldset>
</div>
}
